<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
	<title>ajax图片上传</title>
</head>
<body>
<input type="file" name="img" id="img" size="45" class="input">
<button class="button" id="buttonUpload" onclick="return ajaxFileUpload()">Upload</button>
</body>
</html>
<script type="text/javascript" src="ajaxfileupload.js"></script>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript">
	function ajaxFileUpload(){
		alert(12313);
		$.ajaxFileUpload({
			url:'doajaxfileuk.php',
			secureuri:false,
			fileElementId:'img',
			datyType:'json',
			success:function(data){
				alert(data.file_infor);
			}
		})
		return false;
	}
</script>